import sympy

x = sympy.Symbol('x')
a = 0
b = 1
f = x
g = x ** 2

integral_f = sympy.integrate(f, (x, a, b))
integral_g = sympy.integrate(g, (x, a, b))

print(f"∫_[{a},{b}] {f} dx = {integral_f}")
print(f"∫_[{a},{b}] {g} dx = {integral_g}")
print(f"比较结果：{integral_f} ≥ {integral_g} 为 {integral_f >= integral_g}")